<%@page import="java.util.List,com.crm.entity.InvoiceStatus,com.crm.util.Constants" %>
<%List<InvoiceStatus> opplist=(List<InvoiceStatus>)request.getAttribute("opplist"); %>
  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
<div id="main">
<div id="content">
   <div id="work-area2">
 	<div class="boxIFS">
	 <%if(opplist.size()==0){ %>
	 <div>
	 There Are No Pending Invoices
	 </div>
	 <%}else{ %>
	  <div id="demo">
  <table id="invStatus" width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#C5E4EB">
        <thead>
          <tr>
            <th width="31" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"  style="background-repeat:repeat-x">S.No </th>
            <th width="348" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Invoice No.</th>
            <th width="301" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF"> Status</th>
            <th width="301" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF"> Order Date</th>
            <th width="301" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF"> Due Date</th>
            <th width="301" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF"> Amount</th>
          </tr>
          </thead>
          <tbody>
          <%for(int i=0;i<opplist.size();i++) {%>
          <tr>
            <td align="center" bgcolor="#FFFFFF"><%=i+1 %></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><%=opplist.get(i).getInvoicenumber()%></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><%=opplist.get(i).getStatus()%> </td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><%=opplist.get(i).getSoDate()%></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><%=opplist.get(i).getSoDueDate()%></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><%=opplist.get(i).getAmount()%></td>
          </tr>
          <%} %>
          </tbody>
        </table>
        </div>
        <%} %>
	 </div>
	 </div>
	 </div>
	  
    </div>
</body>
</html>